package stu.model;

import javax.annotation.Resource;
import java.util.List;

public class Grade {
    private int math;
    private int english;
    private int chinese;

    public int getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }

    public int getEnglish() {
        return english;
    }

    public void setEnglish(int english) {
        this.english = english;
    }

    public int getChinese() {
        return chinese;
    }

    public void setChinese(int chinese) {
        this.chinese = chinese;
    }

    @Resource(name = "list")
    public void setPhones(List<Grade> grades) {
        this.chinese = chinese;
        this.english = english;
        this.math = math;
    }
    @Override
    public String toString() {
        return "Grade{" +
                "math=" + math +
                ", english=" + english +
                ", chinese=" + chinese +
                '}';
    }
}
